package org.example.task.model.dto.user;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class UpdateUserDTO {
    /**
     * 用户id
     */
    @NotNull
    private Integer userId;
    /**
     * 真实姓名
     */
    private String realName;
    /**
     * 邮箱
     */
    @Email(message = "邮箱格式不正确")
    private String email;
    /**
     * 手机号
     */
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "请输入正确的手机号")
    private String phone;
    /**
     * 密码
     */
    @Size(min = 3, max = 16, message = "长度为5-16")
    private String password;
}
